package com.base2.webshop.client.modules;

import com.base2.webshop.client.presenters.LoginPresenter;
import com.base2.webshop.client.presenters.MainPresenter;
import com.base2.webshop.client.presenters.ProductDetailPresenter;
import com.base2.webshop.client.presenters.SearchMiniPresenter;
import com.base2.webshop.client.views.MainView;
import com.base2.webshop.client.views.widgets.LoginPanel;
import com.base2.webshop.client.views.widgets.ProductDetailPanel;
import com.base2.webshop.client.views.widgets.SearchMiniPanel;
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;

public class MainModule extends AbstractPresenterModule {

	@Override
	protected void configure() {
		bindPresenterWidget(LoginPresenter.class,
				LoginPresenter.ILoginView.class, LoginPanel.class);
		bindPresenterWidget(ProductDetailPresenter.class,
				ProductDetailPresenter.IProductDetailView.class,
				ProductDetailPanel.class);
		bindPresenterWidget(SearchMiniPresenter.class,
				SearchMiniPresenter.ISearchMiniView.class, SearchMiniPanel.class);
		bindPresenter(MainPresenter.class, MainPresenter.IMainView.class,
				MainView.class, MainPresenter.IMainProxy.class);

	}

}
